package test1;

public class Test6 {

    public static void func(int x) throws ArithmeticException{
        if(x==0){
            System.out.println(10/0);
            throw new ArithmeticException("/by zero");
        }
    }

    public static void main1(String[] args) {
        func(0);

    }

    public static void main(String[] args) {
        Integer a=127;

    }
}
